Optimal. Leaf size=54 \[ \frac {24 e^x}{85}-\frac {24}{85} e^x \cos (x) \sin (x)+\frac {12}{85} e^x \sin ^2(x)-\frac {4}{17} e^x \cos (x) \sin ^3(x)+\frac {1}{17} e^x \sin ^4(x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 54, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {4519, 2225}
\begin {gather*} \frac {24 e^x}{85}+\frac {1}{17} e^x \sin ^4(x)+\frac {12}{85} e^x \sin ^2(x)-\frac {4}{17} e^x \sin ^3(x) \cos (x)-\frac {24}{85} e^x \sin (x) \cos (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2225
Rule 4519
Rubi steps
\begin {align*} \int e^x \sin ^4(x) \, dx &=-\frac {4}{17} e^x \cos (x) \sin ^3(x)+\frac {1}{17} e^x \sin ^4(x)+\frac {12}{17} \int e^x \sin ^2(x) \, dx\\ &=-\frac {24}{85} e^x \cos (x) \sin (x)+\frac {12}{85} e^x \sin ^2(x)-\frac {4}{17} e^x \cos (x) \sin ^3(x)+\frac {1}{17} e^x \sin ^4(x)+\frac {24 \int e^x \, dx}{85}\\ &=\frac {24 e^x}{85}-\frac {24}{85} e^x \cos (x) \sin (x)+\frac {12}{85} e^x \sin ^2(x)-\frac {4}{17} e^x \cos (x) \sin ^3(x)+\frac {1}{17} e^x \sin ^4(x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 33, normalized size = 0.61 \begin {gather*} \frac {1}{680} e^x (255-68 \cos (2 x)+5 \cos (4 x)-136 \sin (2 x)+20 \sin (4 x)) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.09, size = 34, normalized size = 0.63
method | result | size |
default | \(\frac {\left (\sin \left (x \right )-4 \cos \left (x \right )\right ) {\mathrm e}^{x} \left (\sin ^{3}\left (x \right )\right )}{17}+\frac {12 \left (\sin \left (x \right )-2 \cos \left (x \right )\right ) {\mathrm e}^{x} \sin \left (x \right )}{85}+\frac {24 \,{\mathrm e}^{x}}{85}\) | \(34\) |
risch | \(\frac {3 \,{\mathrm e}^{x}}{8}+\frac {{\mathrm e}^{\left (1+4 i\right ) x}}{272}-\frac {i {\mathrm e}^{\left (1+4 i\right ) x}}{68}-\frac {{\mathrm e}^{\left (1+2 i\right ) x}}{20}+\frac {i {\mathrm e}^{\left (1+2 i\right ) x}}{10}-\frac {{\mathrm e}^{\left (1-2 i\right ) x}}{20}-\frac {i {\mathrm e}^{\left (1-2 i\right ) x}}{10}+\frac {{\mathrm e}^{\left (1-4 i\right ) x}}{272}+\frac {i {\mathrm e}^{\left (1-4 i\right ) x}}{68}\) | \(74\) |
norman | \(\frac {-\frac {48 \,{\mathrm e}^{x} \tan \left (\frac {x}{2}\right )}{85}+\frac {144 \,{\mathrm e}^{x} \left (\tan ^{2}\left (\frac {x}{2}\right )\right )}{85}-\frac {208 \,{\mathrm e}^{x} \left (\tan ^{3}\left (\frac {x}{2}\right )\right )}{85}+\frac {64 \,{\mathrm e}^{x} \left (\tan ^{4}\left (\frac {x}{2}\right )\right )}{17}+\frac {208 \,{\mathrm e}^{x} \left (\tan ^{5}\left (\frac {x}{2}\right )\right )}{85}+\frac {144 \,{\mathrm e}^{x} \left (\tan ^{6}\left (\frac {x}{2}\right )\right )}{85}+\frac {48 \,{\mathrm e}^{x} \left (\tan ^{7}\left (\frac {x}{2}\right )\right )}{85}+\frac {24 \,{\mathrm e}^{x} \left (\tan ^{8}\left (\frac {x}{2}\right )\right )}{85}+\frac {24 \,{\mathrm e}^{x}}{85}}{\left (1+\tan ^{2}\left (\frac {x}{2}\right )\right )^{4}}\) | \(95\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 37, normalized size = 0.69 \begin {gather*} \frac {1}{136} \, \cos \left (4 \, x\right ) e^{x} - \frac {1}{10} \, \cos \left (2 \, x\right ) e^{x} + \frac {1}{34} \, e^{x} \sin \left (4 \, x\right ) - \frac {1}{5} \, e^{x} \sin \left (2 \, x\right ) + \frac {3}{8} \, e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.87, size = 36, normalized size = 0.67 \begin {gather*} \frac {4}{85} \, {\left (5 \, \cos \left (x\right )^{3} - 11 \, \cos \left (x\right )\right )} e^{x} \sin \left (x\right ) + \frac {1}{85} \, {\left (5 \, \cos \left (x\right )^{4} - 22 \, \cos \left (x\right )^{2} + 41\right )} e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.63, size = 70, normalized size = 1.30 \begin {gather*} \frac {41 e^{x} \sin ^{4}{\left (x \right )}}{85} - \frac {44 e^{x} \sin ^{3}{\left (x \right )} \cos {\left (x \right )}}{85} + \frac {12 e^{x} \sin ^{2}{\left (x \right )} \cos ^{2}{\left (x \right )}}{17} - \frac {24 e^{x} \sin {\left (x \right )} \cos ^{3}{\left (x \right )}}{85} + \frac {24 e^{x} \cos ^{4}{\left (x \right )}}{85} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 35, normalized size = 0.65 \begin {gather*} \frac {1}{136} \, {\left (\cos \left (4 \, x\right ) + 4 \, \sin \left (4 \, x\right )\right )} e^{x} - \frac {1}{10} \, {\left (\cos \left (2 \, x\right ) + 2 \, \sin \left (2 \, x\right )\right )} e^{x} + \frac {3}{8} \, e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.05, size = 41, normalized size = 0.76 \begin {gather*} \frac {3\,{\mathrm {e}}^x}{8}-\frac {{\mathrm {e}}^x\,\left (\frac {4\,\cos \left (2\,x\right )}{5}+\frac {8\,\sin \left (2\,x\right )}{5}-\frac {2\,{\cos \left (2\,x\right )}^2}{17}-\frac {8\,\cos \left (2\,x\right )\,\sin \left (2\,x\right )}{17}+\frac {1}{17}\right )}{8} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________